//
//  Device.h
//  PacketSniffer
//
//  Created by nark on 15/04/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#include "header.h"


@interface PSDevice : NSObject {
	NSString	*name;
	NSString	*description;			/* Generally NULL */
	BOOL		usable;
	bpf_u_int32 mask;				/* Our netmask */
    bpf_u_int32 net;				/* Our IP */
}


@property (readonly, retain) NSString *name;
@property (readonly, retain) NSString *description;
@property (readonly) BOOL usable;

- (id) initWithName:(NSString *)_name;
- (BOOL)test;

- (void)setNet:(bpf_u_int32 )_net;
- (void)setMask:(bpf_u_int32 )_mask;

- (bpf_u_int32)net;
- (bpf_u_int32)mask;

- (NSString *)netAsString;
- (NSString *)maskAsString;


@end
